package com.daodway.designpattern.statepattern;

public class EatStew extends State<Miner> {
	private static EatStew instance;
	private EatStew(){}
	public static EatStew Instance(){
		if(instance==null){
			instance=new EatStew();
		}
		return instance;
	}
	@Override
	public void Enter(Miner t) {
		System.out.println("Smells reaaaal gooood,Elsa!");
		
	}
	@Override
	public void Execute(Miner t) {
		System.out.println("tastes real good too!");
		t.ChangeState(EnterMineAndDigForNugget.Instance());
	}
	@Override
	public void Exit(Miner t) {
		System.out.println("Thank ya li'l lady.Ah better get back to whatever ah wuz doing!");
		
		
	}
	@Override
	public boolean OnMessage(Miner t, Telegram msg) {
		// TODO Auto-generated method stub
		return false;
	}
	
}
